<template>
	<button @click="onClick">按钮</button>
</template>

<script setup>
import {ref,defineEmits} from "vue"
const emit = defineEmits(["add"])
function onClick(){
	emit("add", Math.random())
}
</script>

<style lang="scss">

</style>